package com.lee.getconfig.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: springcloud
 * @description: test
 * @author: Jiliang.Lee
 * @create: 2019-06-21 10:32
 **/
@RestController
public class TestController {
	@Value("${spring.server.name}")
	private String version;

	@GetMapping("/version")
	public String getVersion() {
		return version;
	}
}
